<?php 

class RestClient implements IRestClient
{
    
    private $_adapter = null;
    
    public function __construct()
    {
        $this->_adapter = new ZendRestClientAdapter();
    }
    
    public function connect($serverAddress)
    {
        $this->_adapter->connect($serverAddress);
    }
    
    public function __call($func, $params)
    {
        return call_user_func_array(array($this->_adapter, $func), $params);
    }
    
    public function get()
    {
        return $this->_adapter->get();
    }
    
    public function post()
    {
        return $this->_adapter->post();
    }
    
    public function put()
    {
        return $this->_adapter->put();
    }
    
    public function delete()
    {
        return $this->_adapter->delete();
    }
}

?>